package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

type Vid struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)"`
	Commit  string `gorm:"type:varchar(50)"`
	LikeNUm string `gorm:"type:varchar(50)"`
}

type Car struct {
	gorm.Model
	Name  string `gorm:"type:varchar(50)"`
	Type  string `gorm:"type:varchar(50)"`
	Num   string `gorm:"type:varchar(50)"`
	Price string `gorm:"type:varchar(50)"`
}
type Order struct {
	gorm.Model
	Cid         int    `gorm:"type:int"`
	OrderTime   string `gorm:"type:varchar(50)"`
	OrderPrice  string `gorm:"type:varchar(50)"`
	OrderPeople string `gorm:"type:varchar(50)"`
}
type CarOrder struct {
	Cid         int    `gorm:"type:int"`
	OrderTime   string `gorm:"type:varchar(50)"`
	OrderPrice  string `gorm:"type:varchar(50)"`
	OrderPeople string `gorm:"type:varchar(50)"`
	Name        string `gorm:"type:varchar(50)"`
	Type        string `gorm:"type:varchar(50)"`
	Num         string `gorm:"type:varchar(50)"`
	Price       string `gorm:"type:varchar(50)"`
}
